@echo off
REM 获取此批处理文件的当前目录，它应该位于allback文件夹内
SET "CURRENT_DIR=%~dp0"
REM 去除路径末尾的反斜杠
SET "NODE_DIR=%CURRENT_DIR:~0,-1%\public\node"

REM 添加 Node.js 路径到系统 PATH 环境变量
setx PATH "%NODE_DIR%;%PATH%" /M

REM 显示设置环境变量的完成信息
echo Node.js path set to: %NODE_DIR%
echo Please restart your computer for the changes to take effect.

pause
